﻿// MIT License
// 开源地址：https://gitee.com/co1024/AbcMvc
// Copyright (c) 2021-2023 1024
// Abc.Mvc=Furion+EF+SqlSugar+Pear layui admin.

namespace Abc.Core.Entities;

/// <summary>
/// 用户角色
/// </summary>
[Table("Sys_UserRole")]
[Comment("用户角色")]
public class SysUserRole : CreateNoKeyEntity, ICreate
{
    /// <summary>
    /// 用户Id
    /// </summary>
    [Comment("用户Id")]
    [SugarColumn(IsPrimaryKey = true)]
    public long UserId { get; set; }

    /// <summary>
    /// 角色Id
    /// </summary>
    [Comment("角色Id")]
    [SugarColumn(IsPrimaryKey = true)]
    public long RoleId { get; set; }

    [SugarColumn(IsIgnore = true)]
    public SysUser User { get; set; }

    [SugarColumn(IsIgnore = true)]
    public SysRole Role { get; set; }
}